#! /bin/bash
LOGFILE=$1
LINES=$2

if [ -z ${LOGFILE} ]
then echo "No log file specified!"
exit 0
fi

if [ -z ${LINES} ]
then ${LINES}=10
fi

echo "tail log begin..."
tail -f -n ${LINES} ${LOGFILE}
